package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Comment;

import java.util.List;

public interface CommentService {

    PageInfo<Comment> findByPage(Integer pageNum, Integer pageSize, String keyword);

    PageInfo<Comment> findByPage(Integer pageNum, Integer pageSize,Integer movieId);

    List<Comment> findById(Integer id);

    void save(Comment comment);

    void deleteById(Integer id);

    void deleteIds(Integer[] ids);
}
